
<%@ page import="payroll.webapp.EmployeeSalaryClaims" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'employeeSalaryClaims.label', default: 'EmployeeSalaryClaims')}" />
        <title><g:message code="default.create.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/adminPage')}">Home</a></span>
            <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
        </div>
        <div class="body">
            <h1><g:message code="default.create.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${employeeSalaryClaimsInstance}">
            <div class="errors">
                <g:renderErrors bean="${employeeSalaryClaimsInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form action="save" method="post" >
                <div class="dialog">
                    <table align="center">
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="empSalClaimID"><g:message code="employeeSalaryClaims.empSalClaimID.label" default="Emp Sal Claim ID" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: employeeSalaryClaimsInstance, field: 'empSalClaimID', 'errors')}">
                                    <g:textField name="empSalClaimID" value="${fieldValue(bean: employeeSalaryClaimsInstance, field: 'empSalClaimID')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="empSalEmpID"><g:message code="employeeSalaryClaims.empSalEmpID.label" default="Emp Sal Emp ID" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: employeeSalaryClaimsInstance, field: 'empSalEmpID', 'errors')}">
                                    <g:textField name="empSalEmpID" value="${employeeSalaryClaimsInstance?.empSalEmpID}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="salClaim_month"><g:message code="employeeSalaryClaims.salClaim_month.label" default="Sal Claimmonth" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: employeeSalaryClaimsInstance, field: 'salClaim_month', 'errors')}">
                                    <g:textField name="salClaim_month" value="${fieldValue(bean: employeeSalaryClaimsInstance, field: 'salClaim_month')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="salClaim_year"><g:message code="employeeSalaryClaims.salClaim_year.label" default="Sal Claimyear" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: employeeSalaryClaimsInstance, field: 'salClaim_year', 'errors')}">
                                    <g:textField name="salClaim_year" value="${fieldValue(bean: employeeSalaryClaimsInstance, field: 'salClaim_year')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="claimTypeID"><g:message code="employeeSalaryClaims.claimTypeID.label" default="Claim Type ID" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: employeeSalaryClaimsInstance, field: 'claimTypeID', 'errors')}">
                                    <g:select name="claimTypeID.id" from="${payroll.webapp.ClaimTypes.list()}" optionKey="id" value="${employeeSalaryClaimsInstance?.claimTypeID?.id}"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="claimGroupID"><g:message code="employeeSalaryClaims.claimGroupID.label" default="Claim Group ID" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: employeeSalaryClaimsInstance, field: 'claimGroupID', 'errors')}">
                                    <g:select name="claimGroupID.id" from="${payroll.webapp.ClaimGroups.list()}" optionKey="id" value="${employeeSalaryClaimsInstance?.claimGroupID?.id}" noSelection="['null': '']" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="claimAmount"><g:message code="employeeSalaryClaims.claimAmount.label" default="Claim Amount" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: employeeSalaryClaimsInstance, field: 'claimAmount', 'errors')}">
                                    <g:textField name="claimAmount" value="${fieldValue(bean: employeeSalaryClaimsInstance, field: 'claimAmount')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="salClaimRemarks"><g:message code="employeeSalaryClaims.salClaimRemarks.label" default="Sal Claim Remarks" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: employeeSalaryClaimsInstance, field: 'salClaimRemarks', 'errors')}">
                                    <g:textField name="salClaimRemarks" value="${employeeSalaryClaimsInstance?.salClaimRemarks}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="salClaim_invoice_month"><g:message code="employeeSalaryClaims.salClaim_invoice_month.label" default="Sal Claiminvoicemonth" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: employeeSalaryClaimsInstance, field: 'salClaim_invoice_month', 'errors')}">
                                    <g:textField name="salClaim_invoice_month" value="${fieldValue(bean: employeeSalaryClaimsInstance, field: 'salClaim_invoice_month')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="salClaim_invoice_year"><g:message code="employeeSalaryClaims.salClaim_invoice_year.label" default="Sal Claiminvoiceyear" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: employeeSalaryClaimsInstance, field: 'salClaim_invoice_year', 'errors')}">
                                    <g:textField name="salClaim_invoice_year" value="${fieldValue(bean: employeeSalaryClaimsInstance, field: 'salClaim_invoice_year')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="isEmpClaimReimbursed"><g:message code="employeeSalaryClaims.isEmpClaimReimbursed.label" default="Is Emp Claim Reimbursed" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: employeeSalaryClaimsInstance, field: 'isEmpClaimReimbursed', 'errors')}">
                                    <g:checkBox name="isEmpClaimReimbursed" value="${employeeSalaryClaimsInstance?.isEmpClaimReimbursed}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="isInvoicedToCustomer"><g:message code="employeeSalaryClaims.isInvoicedToCustomer.label" default="Is Invoiced To Customer" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: employeeSalaryClaimsInstance, field: 'isInvoicedToCustomer', 'errors')}">
                                    <g:checkBox name="isInvoicedToCustomer" value="${employeeSalaryClaimsInstance?.isInvoicedToCustomer}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="customerCostCenter"><g:message code="employeeSalaryClaims.customerCostCenter.label" default="Customer Cost Center" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: employeeSalaryClaimsInstance, field: 'customerCostCenter', 'errors')}">
                                    <g:textField name="customerCostCenter" value="${employeeSalaryClaimsInstance?.customerCostCenter}" />
                                </td>
                            </tr>
						    <g:hiddenField name="createdBy" value="${employeeSalaryClaimsInstance?.createdBy}" />
                        
                            <g:hiddenField name="lastModifiedBy" value="${employeeSalaryClaimsInstance?.lastModifiedBy}" />
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
